﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<mesoBoard.Data.Plugin>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <fieldset>
        <legend><%= Html.ThemeImage("cog.png") %> Plugins</legend>
        
        <table class="form_table">
            <tr>
                <th>Name</th>
                <th>Description</th>
                <th></th>
            </tr>

            <% foreach(var p in Model){ %>
                <tr>
                    <td>
                        <%= p.Name %>
                    </td>               
                    <td>
                        <%= p.Description %>                    
                    </td>
                    <td>
                        <%= p.Installed ? "Installed" : Html.ActionLink("Install plugin", "Install", new { AssemblyName = p.AssemblyName }).ToString() %>
                    </td>
                </tr>
            <%} %>

        </table>

    </fieldset>

</asp:Content>

